package com.zsl.provider.service;

import com.zsl.api.OperationApi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 正式请求provider接口的实现
 *
 * 调用application.name=provider的euraka服务
 */
@FeignClient(name = "provider")
public interface OperationConsumerService extends OperationApi {

	@GetMapping("/opt/getOK")
	String getOK(@RequestParam String word);

	@PostMapping("/opt/setUser")
	String setUser(@RequestBody Map user);

}
